﻿namespace Zhp.Api.Attributes
{
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
    public class SeedListAttribute : Attribute
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="name">列表名称</param>
        /// <param name="menu">菜单名称</param>
        /// <param name="group">分组</param>
        public SeedListAttribute(string name, string menu, ApiGroupEnum group, string[] extraApiUrls = null) 
        { 
            Name = name;
            Menu = menu;
            Group = group;
            ExtraApiUrls = extraApiUrls;
        }

        public string Name { get; private set; }
        public string Menu { get; private set; }
        public ApiGroupEnum Group { get; private set; }
        /// <summary>
        /// 需要的额外接口地址
        /// </summary>
        public string[] ExtraApiUrls { get; private set; }
    }
}
